package cn.groupmarket.test.logicLink.model1.logic;

import cn.groupmarket.api.response.Response;
import cn.groupmarket.test.logicLink.model1.factory.Rule01TradeRuleFactory;
import cn.groupmarket.types.design.framework.link.model1.AbstractLogicLink;
import cn.groupmarket.types.design.framework.link.model1.ILogicLink;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class Node1 extends AbstractLogicLink<String, Rule01TradeRuleFactory.DynamicContext, Response<String>> {
    @Override
    public Response<String> apply(String requestParameter, Rule01TradeRuleFactory.DynamicContext dynamicContext) throws Exception {
        log.info("年龄为");
        dynamicContext.setAge(requestParameter);
        return next(requestParameter, dynamicContext);
    }

}
